#ifndef WXSMENU_H
#define WXSMENU_H

#include "../wxstool.h"


class wxsMenu: public wxsTool {
  public:

    wxsMenu( wxsItemResData* Data );

  private:

    virtual void OnBuildCreatingCode();
    virtual void OnEnumToolProperties( long Flags );
    virtual bool OnIsPointer();
    virtual bool OnCanAddToResource( wxsItemResData*, bool ) { return true; }
    virtual bool OnMouseDClick( wxWindow* Preview, int PosX, int PosY );
    virtual bool OnCanAddChild( wxsItem* Item, bool ShowMessage );
    virtual bool OnCanAddToParent( wxsParent* Item, bool ShowMessage );
    virtual bool OnXmlReadChild( TiXmlElement* Elem, bool IsXRC, bool IsExtra );
    virtual wxString OnGetTreeLabel( int& Image );

    //        wxSize CalculateSize(wxArrayInt* Cols = 0); ///< \brief Getting size of this item requied by editor

    wxString m_Label;
    friend class wxsMenuEditor;
};

#endif
